package com.ruoyi.web.controller.tool;

import com.alibaba.druid.filter.config.ConfigTools;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import com.ruoyi.common.core.controller.BaseController;

/**
 * build 表单构建
 * 
 * @author ruoyi
 */
@Controller
@RequestMapping("/tool/build")
public class BuildController extends BaseController
{
    private String prefix = "tool/build";

    @RequiresPermissions("tool:build:view")
    @GetMapping()
    public String build()
    {
        return prefix + "/build";
    }

    public static void main(String[] args) throws Exception {
        //String publickey = "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKUAMHrATatXwODDAcHxfIcG6diYsw0l0Qfj/NJivHXMVs5JRYf4vao2nEXB+BxA3gHO0er3KiGpz2ieQjPgSF8CAwEAAQ==";
     //   String password = "Q+zSOJytnRLmFHxB9YdFXlMnJj2y60r0Z11OFTRTOYQ/4kzKDWIU6AtFUv+DeVLuitKPGXGIkmalAXaoApOlzw==";
      //  System.out.println( ConfigTools.decrypt(publickey, password) );
        String decrypt = ConfigTools.decrypt("ZhcYOP0By+ZICVdBdJDyG3L3Vkjx4LQQc4MW/rGB4I7ejoSvm7qOKKj9L1XOs95CYwP6ZppYKTH8R+faqZ6cVA==");
      //  System.out.println(ConfigTools.encrypt("root"));
        System.out.println(decrypt);

       // ConfigTools.encrypt("")
      //  B6!mxM9aeqqNup01rho^
        //B6!mxM9aeqqNup01rho^
    }
}
